package com.yuanqunsoft.alimigration.dao;

import java.util.List;

import com.yuanqunsoft.alimigration.model.Rule;

public interface IRuleDao {

    public boolean save(Rule rule);

    public boolean update(Rule rule);

    public boolean delete(Rule rule);

    public List<Rule> getAllRules();

    public List<Rule> queryPage(int currentPage, int pageSize);

    public int getAllPage();

    public Rule getRuleById(int id);
    
    public Rule getRuleByName(String name);
}
